package com.nothing.Service;

import com.nothing.Dao.BannerDaoImpl;
import com.nothing.Dao.IBannerDao;
import com.nothing.Model.Banner;

import java.util.List;

/**
 * Created by Administrator on 2018/3/31.
 */
public class BannerServiceImpl implements IBannerService {
    private IBannerDao iBannerDao;

    public BannerServiceImpl() {
        iBannerDao=new BannerDaoImpl();
    }

    public List<Banner> findBanners() {
        return iBannerDao.findBanners();
    }

    public void addBanner(Banner banner) {
        iBannerDao.addBanner(banner);
    }
}
